﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    schema="dbo" 
    assembly="Simnova.Collaborate.ServiceContract"
    namespace="Simnova.Collaborate.ServiceContract.DataClasses" 
    >
    <class 
       name="TimeLog" 
       table="timeLog"
       lazy="false"
     >
        <id 
           name="timeLogId" 
           type="Int32" 
           column="timeLogId" 
           unsaved-value="0"
           access="field">
            <generator class="identity" />
        </id>
		<property
            name="activityTypeId"
            column="activityTypeId"
            access="field"
            >
		</property>
      <property
              name="taskId"
              column="taskId"
              access="field"
            >
      </property>
      <property 
            name="userId"
            column="userId" 
            access="field"
            >
        </property>
        <property 
            name="description"
            column="description" 
            access="field"
            >
        </property>
        <property 
            name="duration"
            column="duration" 
            access="field"
            >
        </property>
        <property 
            name="createDate"
            column="createDate" 
            access="field"
			      insert="false"
			      update="false"
            >
        </property>
      <property
            name="startTime"
            column="startTime"
            access="field"
            insert="true"
            update="true"
                    >
      </property>
      <property
            name="endTime"
            column="endTime"
            access="field"
            insert="true"
            update="true"
            >
      </property>
      <property
        name="remainingHours"
        column="remainingHours"
        access="field"
                >
      </property>
    </class>
</hibernate-mapping>